<template>
  <div>
    <!--    content-top-->
    <div class="content_top">
      <div class="left">
        <van-cell title="姓名" required/>
        <div class="input_">
          <div class="input_">
            <van-field
              v-model="username"
              name="username"
              placeholder="输入您的姓名"
              :rules="[{ required: true, message: '请填写您的姓名' }]"
            />
          </div>
        </div>
        <van-cell title="性别" required/>
        <van-field name="radio">
          <template #input>
            <van-radio-group v-model="radio" direction="horizontal">
              <van-radio name="1">男</van-radio>
              <van-radio name="2">女</van-radio>
            </van-radio-group>
          </template>
        </van-field>
      </div>
      <div class="right">
        <div class="actor">头像</div>
        <span>上传真实头像能极大提高求职率哟</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ContentTop',
  data () {
    return {
      username: '',
      radio: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.content_top {
  display: flex;

  .left {
    width: 50%;
  }

  .right {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    .actor {
      width: 70px;
      height: 70px;
      background-color: #abd7af;
      text-align: center;
      line-height: 70px;
      border-radius: 50%;
      color: #ffffff;
    }

    span {
      padding: 0 20px;
    }
  }
}

.input_ {
  border: 1px solid #cccccc;
  border-radius: 8px;
}
</style>
